import request from "@/utils/request.js";

export function getSwitchList(info) {
    return request({
        url: "/switch/getSwitchList.do",
        method: "post",
        data: info
    });
}

export function getSwitchDetail(id) {
    return request({
        url: `/switch/getSwitchDetail.do/${id}`,
        method: "get"
    });
}

export function editSwitch(info) {
    return request({
        url: `/switch/editSwitch.do`,
        method: "post",
        data: info
    });
}

export function addSwitch(info) {
    return request({
        url: `/switch/addSwitch.do`,
        method: "post",
        data: info
    });
}